//
//  BaseViewController.swift
//  SinaProject
//
//  Created by guochong on 16/4/21.
//  Copyright © 2016年 吴学宇. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController,VistorViewDelegate{

    var vistor : VistorView?
    var userLogin = false;

    override func loadView() {
        
        userLogin ? super.loadView() :setupVistorView();
        
        
    }
    
    private func setupVistorView() -> Void{
        let customView = VistorView()
        
        customView.delegate = self;
        view = customView;
        
        vistor = customView;
        
        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

    
    }
    
    func loginBtnDidClicked() {
        
        
    }
    
    func registerDidClicked() {
        
    }
    
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    
}
